<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>

<%@page import="org.apache.tiles.TilesContainer"%>
<%@page import="org.apache.tiles.servlet.context.ServletUtil"%>
<% request.setCharacterEncoding("euc-kr");%>
<% response.setContentType("text/html; charset=euc-kr");%>


<%@page import="hk.mrtomato.help.Command"%>
<%@page import="hk.mrtomato.control.Action"%>
<%@page import="hk.mrtomato.control.MrRegiAction"%>
<%@page import="hk.mrtomato.control.MrLoginAction"%>
<%@page import="hk.mrtomato.control.MrUpdateInfoAction"%>
<%@page import="hk.mrtomato.help.ActionForward"%>
<%@page import="hk.mrtomato.control.ErrorAction"%>
<%@page import="hk.mrtomato.control.MrRegiFormAction"%>
<%@page import="hk.mrtomato.control.MrLogoutAction"%><html>
<head>
<title>Insert title here</title>
</head>
<body>

<%
	Command command = new Command(request);
	Action comAction = null;
	ActionForward forward = new ActionForward();	

	if(command==null || command.getCommand().equalsIgnoreCase("")){
		comAction = new ErrorAction();
	}else if(command.getCommand().equalsIgnoreCase("regiform")){
		comAction = new MrRegiFormAction();	
	}else if(command.getCommand().equalsIgnoreCase("regi")){
		comAction = new MrRegiAction();	
	}else if(command.getCommand().equalsIgnoreCase("login")){
		comAction = new MrLoginAction();
	}else if(command.getCommand().equalsIgnoreCase("logout")){
		comAction = new MrLogoutAction();
	}else if(command.getCommand().equalsIgnoreCase("updinfo")){
		comAction = new MrUpdateInfoAction();		
	}		
	forward = comAction.execute(request,response);
	try {
		forward.go(request, response);
	} catch(Exception e){
		
	}
%>
</body>
</html>